package com.cugmarket.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cugmarket.dto.LoginFormDTO;
import com.cugmarket.dto.Result;
import com.cugmarket.dto.UserDTO;
import com.cugmarket.entity.User;

import javax.servlet.http.HttpSession;

public interface UserService extends IService<User> {
    String sendCode(String phone);

    void logout(String token);

    String loginWithCode(LoginFormDTO loginForm);

    String loginWithPassword(LoginFormDTO loginForm);

    UserDTO getUserById(String userId);

    void updateUser(UserDTO userDTO);

    UserDTO getUserInfo();

    void changePassword(String password, String confirmPassword);
}